import http from "./index";
// 获取轮播图和新闻列表
export const getNewsLatest = () => http.get("/news_latest");
// 获取新闻详情
export const getNewsInfo = (id) =>
  http.get("/news_info", {
    params: { id },
  });

  // 获取新闻点赞信息
  export const getStoryExtra = (id) =>
    http.get("/story_extra", {
      params: { id },
    });

  // 发送验证码的接口
  export const getPhoneCode = (phone) =>
    http.post("/phone_code ", {
      params: { phone },
    });